﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DeploymentMaxLib
{
    public class ActionGroup
    {
        public Guid Key { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public DateTime? Created { get; set; }
        public DateTime? Updated { get; set; }
        public List<ActionRoutineRef> RoutineRefList { get; set; }

        public ActionGroup()
        {
        }

        private ActionGroup(string pName)
        {
            this.Key = Guid.NewGuid();
            this.Name = pName;
            this.Created = DateTime.Now;
            this.RoutineRefList = new List<ActionRoutineRef>();
        }

        public static ActionGroup New(string pName)
        {
            return new ActionGroup(pName);
        }
    }
}
